﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using JXT.PrimaryKey.Batman.Core.WcfService;

namespace JXT.PrimaryKey.Batman.Core.Security
{
    /// <summary>
    /// 用户权限对象
    /// </summary>
    [DataContract(Namespace = ServiceEnvironment.ModelNamespace)]
    public class Authority
    {
        /// <summary>
        /// 模板Id
        /// </summary>
        [DataMember]
        public int TemplateId { get; set; }

        /// <summary>
        /// 授权名称
        /// </summary>
        [DataMember]
        public string Name { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        [DataMember]
        public string Summary { get; set; }

        /// <summary>
        /// 授权类型
        /// </summary>
        [DataMember]
        public AuthorityType Type { get; set; }

        /// <summary>
        /// 认证类型
        /// </summary>
        [DataMember]
        public PriorityType Priority { get; set; }

        /// <summary>
        /// 数据值
        /// </summary>
        [DataMember]
        public string Value { get; set; }

        /// <summary>
        /// 有效期
        /// </summary>
        [DataMember]
        public DateTime? ExpiresTime { get; set; }
    }
}
